﻿using AutoMapper;
using B.S.Traceability.Domain;
using B.S.Traceability.Write.API.Applicantion.Command.BreedCommand;
using B.S.Traceability.Write.API.Applicantion.Command.EnterCommand;
using B.S.Traceability.Write.API.Applicantion.Command.GoodsCommand;
using B.S.Traceability.Write.API.Applicantion.Command.HealthCommand;
using B.S.Traceability.Write.API.Applicantion.Command.PhoneCommand;
using B.S.Traceability.Write.API.Applicantion.Command.SlaughterInfoCommand;
using B.S.Traceability.Write.API.Applicantion.Command.SupplierCommand;
using B.S.Traceability.Write.API.Applicantion.CommandHandler.SlaughterInfoCommandHandler;

namespace B.S.Traceability.Write.API
{
    public class AutoMapperProfile:Profile
    {
        public AutoMapperProfile()
        {
            CreateMap<AddGoodsCommand,SU_GoodsInfo>().ReverseMap();
            CreateMap<AddBreedCommand, SU_BreedInfo>().ReverseMap();
            CreateMap<AddHealthCommand, SU_Health>().ReverseMap();
            CreateMap<AddEnterCommand, SU_EnterInfo>().ReverseMap();
            CreateMap<AddSlaughterInfoCommand, SU_SlaughterInfo>().ReverseMap();
            CreateMap<AddPhoneCommand, SU_PhoneInfo>().ReverseMap();
            CreateMap<AddSupplierCommand, SU_Supplier>().ReverseMap();
        }
    }
}
